package org.jdcenter.server.xb.visitors;

import org.jdcenter.server.deployment.DelegateDeployer;
import org.jdcenter.server.xb.metadata.BeanMateData;
import org.jdcenter.server.xb.metadata.BeansMateData;
import org.jdcenter.server.xb.metadata.MateData;
import org.jdcenter.server.xb.metadata.PluginsMateData;
/**
 * @author miao
 * @since 2008-12-03
 *
 */
public class PluginsVisitor implements AbstractVisitor{

	public void visitMateData(PluginsMateData mateData) {
		// TODO Auto-generated method stub
		System.out.println("PluginsMateData");
		System.out.println(mateData.getClass().getName());
	}

	public void visitMateData(BeanMateData mateData) {
		// TODO Auto-generated method stub
		System.out.println("BeanMateData");
		System.out.println(mateData.getBeanName());
		DelegateDeployer.getInstance().deploy(mateData);
	}

	public void visitMateData(MateData mateData) {
		// TODO Auto-generated method stub
		System.out.println("MateData");
		System.out.println(mateData.getClass().getName());
	}
	
	public void visitMateData(BeansMateData mateData) {
		// TODO Auto-generated method stub
		System.out.println("BeansMateData");
		System.out.println(mateData.getClass().getName());
	}
}
